package com.wfh.mianshiji.model.enums;

import lombok.Getter;

/**
 * @Title: InterviewStatusEnum
 * @Author wangfenghuan
 * @Package com.wfh.mianshiji.model.enums
 * @Date 2025/11/1 09:46
 * @description: 面试状态枚举
 */
@Getter
public enum InterviewStatusEnum {

    /**
     * 面试状态
     */
    NOT("未开始", 0),
    DOING("正在面试", 1),
    FINISHED("结束面试", 2);

    private String text;
    private Integer value;

    InterviewStatusEnum(String text, Integer value) {
        this.text = text;
        this.value = value;
    }

    public InterviewStatusEnum getByValue(Integer value) {
        for (InterviewStatusEnum interviewStatusEnum : InterviewStatusEnum.values()) {
            if (interviewStatusEnum.value.equals(value)) {
                return interviewStatusEnum;
            }
        }
        return null;
    }
}
